import axios from '../utils/ServerLzx'
import api from '../api'
let capital = {
    consignments,
    selectSalesMan,
}
//确认发货
 function consignments(data) {

    return new Promise ((resolve,reject)=>{
        axios({
            url:api.Capital.consignments,
            method: data.method,
            params:data.data
        })
        .then((res)=>{
          resolve(res)
        })
        .catch((err)=>{
            reject(err)
        })
    })
   
}

//查询
//
function selectSalesMan() {

    return new Promise ((resolve,reject)=>{
        // axios({
        //     url:api.Capital.selectSalesMan,
        //     method: data.method,
        //     params:data.data
        // })
        axios.get(
            api.Capital.selectSalesMan,
            )
        .then((res)=>{
          resolve(res)
        })
        .catch((err)=>{
            reject(err)
        })
    })
   
}

export default capital